package cn.lili.modules.promotion.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.order.order.entity.dos.OrderItem;
import cn.lili.modules.promotion.entity.dos.ReturnActivityGoods;
import cn.lili.modules.promotion.entity.dos.ReturnActivityUser;
import cn.lili.modules.promotion.fallback.ReturnActivityFallback;
import cn.lili.modules.promotion.fallback.ReturnActivityGoodsFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotBlank;
import java.util.List;

@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.PROMOTION_SERVICE, contextId = "return-activity-goods", fallback = ReturnActivityGoodsFallback.class)
public interface ReturnActivityGoodsClient {

    /**
     * 查询全返商品
     * @return 全返卷列表
     * */
    @GetMapping("/feign/promotion/return/activity/goods/getListByStoreId")
    List<ReturnActivityGoods> getListByStoreId(@RequestParam String storeId);

    /**
     * 根据商品ID查询商品是否是全返商品
     * @return 全返卷列表
     * */
    @GetMapping("/feign/promotion/return/activity/goods/isReturnActivityGoods")
    boolean isReturnActivityGoods(@RequestParam String goodsId);
}
